Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 17, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence OpenSSF
@biomejs/biome (source) 1.9.4 -> 2.3.6 age adoption passing confidence OpenSSF Scorecard

Release Notes

biomejs/biome (@​biomejs/biome)

v2.3.6

Compare Source

Patch Changes
  • #​8100 82b9a8e Thanks @​Netail! - Added the nursery rule useFind. Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.

    Invalid:

    [1, 2, 3].filter((x) => x > 1)[0];
    
    [1, 2, 3].filter((x) => x > 1).at(0);
  • #​8118 dbc7021 Thanks @​hirokiokada77! - Fixed #​8117: useValidLang now accepts valid BCP 47 language tags with script subtags.

    Valid:

    <html lang="zh-Hans-CN"></html>
  • #​7672 f1d5725 Thanks @​Netail! - Added the nursery rule useConsistentGraphqlDescriptions, requiring all descriptions to follow the same style (either block or inline) inside GraphQL files.

    Invalid:

    enum EnumValue {
      "this is a description"
      DEFAULT
    }

    Valid:

    enum EnumValue {
      """
      this is a description
      """
      DEFAULT
    }
  • #​8026 f102661 Thanks @​matanshavit! - Fixed #​8004: noParametersOnlyUsedInRecursion now correctly detects recursion by comparing function bindings instead of just names.

    Previously, the rule incorrectly flagged parameters when a method had the same name as an outer function but called the outer function (not itself):

    function notRecursive(arg) {
      return arg;
    }
    
    const obj = {
      notRecursive(arg) {
        return notRecursive(arg); // This calls the outer function, not the method itself
      },
    };

    Biome now properly distinguishes between these cases and will not report false positives.

  • #​8097 5fc5416 Thanks @​dyc3! - Added the nursery rule noVueVIfWithVFor. This rule disallows v-for and v-if on the same element.

    <!-- Invalid -->
    <div v-for="item in items" v-if="item.isActive">
      {{ item.name }}
    </div>
  • #​8085 7983940 Thanks @​Netail! - Added the nursery rule noForIn. Disallow iterating using a for-in loop.

    Invalid:

    for (const i in array) {
      console.log(i, array[i]);
    }
  • #​8086 2b41e82 Thanks @​matanshavit! - Fixed #​8045: The noNestedTernary rule now correctly detects nested ternary expressions even when they are wrapped in parentheses (e.g. foo ? (bar ? 1 : 2) : 3).

    Previously, the rule would not flag nested ternaries like foo ? (bar ? 1 : 2) : 3 because the parentheses prevented detection. The rule now looks through parentheses to identify nested conditionals.

    Previously not detected (now flagged):

    const result = foo ? (bar ? 1 : 2) : 3;

    Still valid (non-nested with parentheses):

    const result = foo ? bar : baz;
  • #​8075 e403868 Thanks @​YTomm! - Fixed #​7948: The useReadonlyClassProperties code fix when checkAllProperties is enabled will no longer insert a newline after readonly and the class property.

  • #​8102 47d940e Thanks @​lucasweng! - Fixed #​8027. useReactFunctionComponents no longer reports class components that implement componentDidCatch using class expressions.

    The rule now correctly recognizes error boundaries defined as class expressions:

    const ErrorBoundary = class extends Component {
      componentDidCatch(error, info) {}
    
      render() {
        return this.props.children;
      }
    };
  • #​8097 5fc5416 Thanks @​dyc3! - Added the nursery rule useVueHyphenatedAttributes, which encourages using kebab case for attribute names, per the Vue style guide's recommendations.

    <!-- Invalid -->
    <MyComponent myProp="value" />
    
    <!-- Valid -->
    <MyComponent my-prop="value" />
  • #​8108 0f0a658 Thanks @​Netail! - Added the nursery rule noSyncScripts. Prevent the usage of synchronous scripts.

    Invalid:

    <script src="https://third-party-script.js" />

    Valid:

    <script src="https://third-party-script.js" async />
    <script src="https://third-party-script.js" defer />
  • #​8098 1fdcaf0 Thanks @​Jayllyz! - Added documentation URLs to rule descriptions in the JSON schema.

  • #​8097 5fc5416 Thanks @​dyc3! - Fixed an issue with the HTML parser where it would treat Vue directives with dynamic arguments as static arguments instead.

  • #​7684 f4433b3 Thanks @​vladimir-ivanov! - Changed noUnusedPrivateClassMembers to align more fully with meaningful reads.

    This rule now distinguishes more carefully between writes and reads of private class members.

    • A meaningful read is any access that affects program behavior.
    • For example, this.#x += 1 both reads and writes #x, so it counts as usage.
    • Pure writes without a read (e.g. this.#x = 1 with no getter) are no longer treated as usage.

    This change ensures that private members are only considered “used” when they are actually read in a way that influences execution.

    Invalid examples (previously valid)

    class UsedMember {
      set #x(value) {
        doSomething(value);
      }
    
      foo() {
        // This assignment does not actually read #x, because there is no getter.
        // Previously, this was considered a usage, but now it’s correctly flagged.
        this.#x = 1;
      }
    }

    Valid example (Previously invalid)

    class Foo {
      #usedOnlyInWriteStatement = 5;
    
      method() {
        // This counts as a meaningful read because we both read and write the value.
        this.#usedOnlyInWriteStatement += 42;
      }
    }
  • #​7684 f4433b3 Thanks @​vladimir-ivanov! - Improved detection of used private class members

    The analysis for private class members has been improved: now the tool only considers a private member “used” if it is actually referenced in the code.

    • Previously, some private members might have been reported as used even if they weren’t actually accessed.
    • With this change, only members that are truly read or called in the code are counted as used.
    • Members that are never accessed will now be correctly reported as unused.

    This makes reports about unused private members more accurate and helps you clean up truly unused code.

    Example (previously valid)

    type YesNo = "yes" | "no";
    
    export class SampleYesNo {
      private yes: () => void;
      private no: () => void;
      private dontKnow: () => void; // <- will now report as unused
    
      on(action: YesNo): void {
        this[action]();
      }
    }
  • #​7681 b406db6 Thanks @​kedevked! - Added the new lint rule, useSpread, ported from the ESLint rule prefer-spread.

    This rule enforces the use of the spread syntax (...) over Function.prototype.apply() when calling variadic functions, as spread syntax is generally more concise and idiomatic in modern JavaScript (ES2015+).

    The rule provides a safe fix.

Invalid
Math.max.apply(Math, args);
foo.apply(undefined, args);
obj.method.apply(obj, args);
Valid
Math.max(...args);
foo(...args);
obj.method(...args);

// Allowed: cases where the `this` binding is intentionally changed
foo.apply(otherObj, args);
  • #​7287 aa55c8d Thanks @​ToBinio! - Fixed #​7205: The noDuplicateTestHooks rule now treats chained describe variants (e.g., describe.each/for/todo) as proper describe scopes, eliminating false positives.

    The following code will no longer be a false positive:

    describe("foo", () => {
      describe.for([])("baz", () => {
        beforeEach(() => {});
      });
    
      describe.todo("qux", () => {
        beforeEach(() => {});
      });
    
      describe.todo.each([])("baz", () => {
        beforeEach(() => {});
      });
    });
  • #​8013 0c0edd4 Thanks @​Jayllyz! - Added the GraphQL nursery rule useUniqueGraphqlOperationName. This rule ensures that all GraphQL operations within a document have unique names.

    Invalid:

    query user {
      user {
        id
      }
    }
    
    query user {
      user {
        id
        email
      }
    }

    Valid:

    query user {
      user {
        id
      }
    }
    
    query userWithEmail {
      user {
        id
        email
      }
    }
  • #​8084 c2983f9 Thanks @​dyc3! - Fixed #​8080: The HTML parser, when parsing Vue, can now properly handle Vue directives with no argument, modifiers, or initializer (e.g. v-else). It will no longer treat subsequent valid attributes as bogus.

    <p v-else class="flex">World</p>
    <!-- Fixed: class now gets parsed as it's own attribute -->
  • #​8104 041196b Thanks @​Conaclos! - Fixed noInvalidUseBeforeDeclaration.
    The rule no longer reports a use of an ambient variable before its declarations.
    The rule also completely ignores TypeScript declaration files.
    The following code is no longer reported as invalid:

    CONSTANT;
    declare const CONSTANT: number;
  • #​8060 ba7b076 Thanks @​dyc3! - Added the nursery rule useVueValidVBind, which enforces the validity of v-bind directives in Vue files.

    Invalid v-bind usages include:

    <Foo v-bind />
    <!-- Missing argument -->
    <Foo v-bind:foo />
    <!-- Missing value -->
    <Foo v-bind:foo.bar="baz" />
    <!-- Invalid modifier -->
  • #​8113 fb8e3e7 Thanks @​Conaclos! - Fixed noInvalidUseBeforeDeclaration.
    The rule now reports invalid use of classes, enums, and TypeScript's import-equals before their declarations.

    The following code is now reported as invalid:

    new C();
    class C {}
  • #​8077 0170dcb Thanks @​dyc3! - Added the rule useVueValidVElseIf to enforce valid v-else-if directives in Vue templates. This rule reports invalid v-else-if directives with missing conditional expressions or when not preceded by a v-if or v-else-if directive.

  • #​8077 0170dcb Thanks @​dyc3! - Added the rule useVueValidVElse to enforce valid v-else directives in Vue templates. This rule reports v-else directives that are not preceded by a v-if or v-else-if directive.

  • #​8077 0170dcb Thanks @​dyc3! - Added the rule useVueValidVHtml to enforce valid usage of the v-html directive in Vue templates. This rule reports v-html directives with missing expressions, unexpected arguments, or unexpected modifiers.

  • #​8077 0170dcb Thanks @​dyc3! - Added the rule useVueValidVIf to enforce valid v-if directives in Vue templates. It disallows arguments and modifiers, and ensures a value is provided.

  • #​8077 0170dcb Thanks @​dyc3! - Added the rule useVueValidVOn to enforce valid v-on directives in Vue templates. This rule reports invalid v-on / shorthand @ directives with missing event names, invalid modifiers, or missing handler expressions.

v2.3.5

Compare Source

Patch Changes
  • #​8023 96f3e77 Thanks @​ematipico! - Added support Svelte syntax {@&#8203;html}. Biome now is able to parse and format the Svelte syntax {@&#8203;html}:

    -{@&#8203;html   'div'}
    +{@&#8203;html 'div'}

    The contents of the expressions inside the {@&#8203;html <expression>} aren't formatted yet.

  • #​8058 5f68bcc Thanks @​ematipico! - Fixed a bug where the Biome Language Server would enable its project file watcher even when no project rules were enabled.

    Now the watching of nested configuration files and nested ignore files is delegated to the editor, if their LSP spec supports it.

  • #​8023 96f3e77 Thanks @​ematipico! - Added support Svelte syntax {@&#8203;render}. Biome now is able to parse and format the Svelte syntax {@&#8203;render}:

    -{@&#8203;render   sum(1, 2)   }
    +{@&#8203;render sum(1, 2)}

    The contents of the expressions inside the {@&#8203;render <expression>} aren't formatted yet.

  • #​8006 f0612a5 Thanks @​Bertie690! - Updated documentation and diagnostic for lint/complexity/noBannedTypes. The rule should have a more detailed description and diagnostic error message.

  • #​8039 da70d8b Thanks @​PFiS1737! - Biome now keeps a blank line after the frontmatter section in Astro files.

  • #​8042 b7efa6f Thanks @​dyc3! - The CSS Parser, with tailwindDirectives enabled, will now accept at rules like @media and @supports in @custom-variant shorthand syntax.

  • #​8064 3ff9d45 Thanks @​dibashthapa! - Fixed #​7967: Fixed the issue with support for advanced SVG props

  • #​8023 96f3e77 Thanks @​ematipico! - Added support Svelte syntax {@&#8203;attach}. Biome now is able to parse and format the Svelte syntax {@&#8203;attach}:

    -<div {@&#8203;attach    myAttachment   }>...</div>
    +<div {@&#8203;attach myAttachment}>...</div>

    The contents of the expressions inside the {@&#8203;attach <expression>} aren't formatted yet.

  • #​8001 6e8a50e Thanks @​ematipico! - Added support Svelte syntax {#key}. Biome now is able to parse and format the Svelte syntax {#key}:

    -{#key   expression} <div></div> {/key}
    +{#key expression}
    +  <div></div>
    +{/key}

    The contents of the expressions inside the {#key <expression>} aren't formatted yet.

  • #​8023 96f3e77 Thanks @​ematipico! - Added support Svelte syntax {@&#8203;const}. Biome now is able to parse and format the Svelte syntax {@&#8203;const}:

    -{@&#8203;const   name = value}
    +{@&#8203;const name = value}

    The contents of the expressions inside the {@&#8203;const <expression>} aren't formatted yet.

  • #​8044 8f77d4a Thanks @​Netail! - Corrected rule source references. biome migrate eslint should do a bit better detecting rules in your eslint configurations.

  • #​8065 1a2d1af Thanks @​Netail! - Added the nursery rule useArraySortCompare. Require Array#sort and Array#toSorted calls to always provide a compareFunction.

    Invalid:

    const array = [];
    array.sort();

    Valid:

    const array = [];
    array.sort((a, b) => a - b);
  • #​7673 a3a713d Thanks @​dyc3! - The HTML parser is now able to parse vue directives. This enables us to write/port Vue lint rules that require inspecting the <template> section. However, this more complex parsing may result in parsing errors where there was none before. For those of you that have opted in to the experimental support (aka experimentalFullSupportEnabled), we greatly appreciate your help testing this out, and your bug reports.

  • #​8031 fa6798a Thanks @​ematipico! - Added support for the Svelte syntax {#if}{/if}. The Biome HTML parser is now able to parse and format the {#if}{/if} blocks:

    <!-- if / else-if / else -->
    {#if porridge.temperature > 100}
    -<p>too hot!</p>
    +  <p>too hot!</p>
    {:else if 80 > porridge.temperature}
    -<p>too cold!</p>
    +  <p>too cold!</p>
    {:else if 100 > porridge.temperature}
    -<p>too too cold!</p>
    +  <p>too too cold!</p>
    {:else}
    -<p>just right!</p>
    +  <p>just right!</p>
    {/if}
  • #​8041 beeb7bb Thanks @​dyc3! - The CSS parser, with tailwindDirectives enabled, will now accept lists of selectors in @custom-variant shorthand syntax.

    @&#8203;custom-variant cell (th:has(&), td:has(&));
  • #​8028 c09e45c Thanks @​fmajestic! - The GitLab reporter now outputs format errors.

  • #​8037 78011b1 Thanks @​PFiS1737! - indentScriptAndStyle no longer indents the frontmatter in Astro files.

  • #​8009 6374b1f Thanks @​tmcw! - Fixed an edge case in the useArrowFunction rule.

    The rule no longer emits diagnostics for or offers to fix functions that reference
    the arguments object,
    because that object is undefined for arrow functions.

    Valid example:

    // Valid: this function cannot be transformed into an arrow function because
    // arguments is not defined for arrow functions.
    const getFirstArg = function () {
      return arguments[0];
    };

v2.3.4

Compare Source

Patch Changes
  • #​7989 4855c4a Thanks @​alissonlauffer! - Fixed a regression in Astro frontmatter parsing where comments inside quoted strings were incorrectly detected as actual comments. This caused the parser to prematurely terminate frontmatter parsing when encountering strings like const test = "//";.
    For example, the following Astro frontmatter now parses correctly:

    ---
    const test = "// not a real comment";
    ---
  • #​7968 0b28f5f Thanks @​denbezrukov! - Refactored formatter to use strict Token element for better performance. The new Token variant is optimized for static, ASCII-only text (keywords, operators, punctuation) with the following constraints:

    • ASCII only (no Unicode characters)
    • No newlines (\n, \r)
    • No tab characters (\t)

    This enables faster printing and fitting logic by using bulk string operations (push_str, len()) instead of character-by-character iteration with Unicode width calculations.

  • #​7941 19b8280 Thanks @​Conaclos! - Fixed #​7943. Rules' options are now properly merged with the inherited options from a shared configuration.

    This means that you can now override a specific option from a rule without resetting the other options to their default.

    Given the following shared configuration:

    {
      "linter": {
        "rules": {
          "style": {
            "useNamingConvention": {
              "level": "on",
              "options": {
                "strictCase": false,
                "conventions": [
                  {
                    "selector": { "kind": "variable", "scope": "global" },
                    "formats": ["CONSTANT_CASE"]
                  }
                ]
              }
            }
          }
        }
      }
    }

    And the user configuration that extends this shared configuration:

    {
      "extends": ["shared.json"],
      "linter": {
        "rules": {
          "style": {
            "useNamingConvention": {
              "level": "on",
              "options": { "strictCase": true }
            }
          }
        }
      }
    }

    The obtained merged configuration is now as follows:

    {
      "extends": ["shared.json"],
      "linter": {
        "rules": {
          "style": {
            "useNamingConvention": {
              "level": "on",
              "options": {
                "strictCase": true,
                "conventions": [
                  {
                    "selector": { "kind": "variable", "scope": "global" },
                    "formats": ["CONSTANT_CASE"]
                  }
                ]
              }
            }
          }
        }
      }
    }
  • #​7969 425963d Thanks @​ematipico! - Added support for the Svelte syntax {@&#8203;debug}. The Biome HTML parser is now able to parse and format the blocks:

    -{@&#8203;debug     foo,bar,    something}
    +{@&#8203;debug foo, bar, something}
  • #​7986 3256f82 Thanks @​lisiur! - Fixed #​7981. Now Biome correctly detects and parses lang='tsx' and lang='jsx' languages when used inside in .vue files, when .experimentalFullSupportEnabled is enabled.

  • #​7921 547c2da Thanks @​dyc3! - Fixed #​7854: The CSS parser, with tailwindDirectives enabled, will now parse @source inline("underline");.

  • #​7856 c9e20c3 Thanks @​Netail! - Added the nursery rule noContinue. Disallowing the usage of the continue statement, structured control flow statements such as if should be used instead.

    Invalid:

    let sum = 0,
      i;
    
    for (i = 0; i < 10; i++) {
      if (i >= 5) {
        continue;
      }
    
      sum += i;
    }

    Valid:

    let sum = 0,
      i;
    
    for (i = 0; i < 10; i++) {
      if (i < 5) {
        sum += i;
      }
    }

v2.3.3

Compare Source

Patch Changes

v2.3.2

Compare Source

Patch Changes
  • #​7859 c600618 Thanks @​Netail! - Added the nursery rule noIncrementDecrement, disallows the usage of the unary operators ++ and --.

  • #​7901 0d17b05 Thanks @​ematipico! - Fixed #​7837, where Biome couldn't properly parse text expressions that contained nested curly brackets. This was breaking parsing in Astro and Svelte files.

  • #​7874 e617d36 Thanks @​Bertie690! - Fixed #​7230: noUselessStringConcat no longer emits false positives for multi-line strings with leading + operators.

    Previously, the rule did not check for leading newlines on the + operator, emitting false positives if one occurred at the start of a line.
    Notably, formatting with operatorLinebreak="before" would move the + operators to the start of lines automatically, resulting in spurious errors whenever a multi-line string was used.

    Now, the rule correctly detects and ignores multi-line concatenations with leading operators as well, working regardless of the setting of operatorLinebreak.

    Example

    // The following code used to error if the `+` operators were at the start of lines (as opposed to the end).
    // Now, the rule correctly recognizes this as a stylistic concatenation and ignores it.
    const reallyLongStringThatShouldNotError =
      "Lorem ipsum dolor sit amet consectetur adipiscing elit." +
      "Quisque faucibus ex sapien vitae pellentesque sem placerat." +
      "In id cursus mi pretium tellus duis convallis." +
      "Tempus leo eu aenean sed diam urna tempor. Pulvinar vivamus fringilla";
  • #​7786 33ffcd5 Thanks @​daivinhtran! - Fixed #​7601: Properly match Grit plugin's code snippet with only one child.

  • #​7901 0d17b05 Thanks @​ematipico! - Fixed #​7837, where Biome Language Server panicked when opening HTML-ish files when the experimental full support is enabled.

v2.3.1

Compare Source

Patch Changes
  • #​7840 72afdfa Thanks @​ematipico! - Fixed #​7838, which caused the new --css-parse-* arguments not being recognised by the ci command.

  • #​7789 d5b416e Thanks @​fronterior! - Fixed the LSP method workspace/didChangeWorkspaceFolders to perform incremental updates instead of replacing the entire folder list.

  • #​7852 bd254c7 Thanks @​dyc3! - Fixed #​7843: The CSS parser, when tailwindDirectives is enabled, correctly parses --*: initial;.

  • #​7872 0fe13fe Thanks @​dyc3! - Fixed #​7861: The HTML parser will now accept Svelte attribute shorthand syntax in .svelte files.

  • #​7866 7b2600b Thanks @​dyc3! - Fixed #​7860: The css parser, with tailwindDirectives enabled, will now accept @plugin options.

  • #​7853 fe90c78 Thanks @​dyc3! - Fixed #​7848: The css parser with tailwindDirectives enabled will now correctly parse tailwind's source exclude syntax: @source not "foo.css";

  • #​7878 c9f7fe5 Thanks @​ematipico! - Fixed #​7857: Biome now parses <script> tags as TypeScript when analysing .astro files.

  • #​7867 b42b718 Thanks @​smorimoto! - Fixed incorrect option name in HTML parser error message.

    The error message for disabled text expressions incorrectly referred
    to the html.parser.textExpression option, which does not exist.
    Updated it to reference the correct html.parser.interpolation option.

v2.3.0

Compare Source

Minor Changes
Example

Given the following file structure:

tsconfig.json

{
  "compilerOptions": {
    "baseUrl": "./src"
  }
}

src/foo.ts

export function foo() {}

In this scenario, import { foo } from "foo"; should work regardless of the
location of the file containing the import statement.

Fixes #​6432.

  • #​7745 6fcbc07 Thanks @​dyc3! - Added ignore option to noUnknownAtRules. If an unknown at-rule matches any of the items provided in ignore, a diagnostic won't be emitted.

  • #​7753 63cb7ff Thanks @​ematipico! - Enhanced the init command. The init command now checks if the existing project contains known ignore files and known generated folders.

    If Biome finds .gitignore or .ignore files, it will add the following configuration to biome.json:

    {
    +  "vcs": {
    +    "enabled": true,
    +    "clientKind": "git",
    +    "useIgnoreFile": true
    +  }
    }

    If Biome finds a dist/ folder, it will exclude it automatically using the double-exclude syntax:

    {
    +  "files": {
    +    "includes": ["**", "!!**/dist"]
    +  }
    }
  • #​7548 85d3a3a Thanks @​siketyan! - The rules in a domain are no longer enabled automatically by the installed dependencies unless the rule is recommended.

  • #​7723 d3aac63 Thanks @​ematipico! - Added --css-parse-css-modules CLI flag to control whether CSS Modules syntax is enabled.

    You can now enable or disable CSS Modules parsing directly from the command line:

    biome check --css-parse-css-modules=true file.module.css
    biome format --css-parse-css-modules=true file.module.css
    biome lint --css-parse-css-modules=true file.module.css
    biome ci --css-parse-css-modules=true file.module.css
  • #​7723 d3aac63 Thanks @​ematipico! - Added --css-parse-tailwind-directives CLI flag to control whether Tailwind CSS 4.0 directives and functions are enabled.

    You can now enable or disable Tailwind CSS 4.0 directive parsing directly from the command line:

    biome check --css-parse-tailwind-directives=true file.css
    biome format --css-parse-tailwind-directives=true file.css
    biome lint --css-parse-tailwind-directives=true file.css
    biome ci --css-parse-tailwind-directives=true file.css
  • #​7330 272632f Thanks @​ematipico! - Updated the formatting of .svelte and .vue files. Now the indentation of the JavaScript blocks matches Prettier's:

    <script>
    - import Component from "./Component"
    +   import Component from "./Component"
    </script>
  • #​7333 de0d2d6 Thanks @​dyc3! - Implemented the indentScriptAndStyle option for vue and svelte files, with the default set to false to match Prettier's vueIndentScriptAndStyle option. When enabled, this option indents the content within <script> and <style> tags to align with the surrounding HTML structure.

    It can be enabled with this configuration:

    {
      "html": {
        "formatter": {
          "indentScriptAndStyle": true
        }
      }
    }

    Which will format this code to:

    <script>
    import Component from "./Component.vue";
    </script>
  • #​7359 ebbddc4 Thanks @​arendjr! - Deprecated the option files.experimentalScannerIgnores in favour of force-ignore syntax in files.includes.

    files.includes supports ignoring files by prefixing globs with an exclamation mark (!). With this change, it also supports force-ignoring globs by prefixing them with a double exclamation mark (!!).

    The effect of force-ignoring is that the scanner will not index files matching the glob, even in project mode, even if those files are imported by other files, and even if they are files that receive special treatment by Biome, such as nested biome.json files.

Example

Let's take the following configuration:

{
  "files": {
    "includes": [
      "**",
      "!**/generated",
      "!!**/dist",
      "fixtures/example/dist/*.js"
    ]
  },
  "linter": {
    "domains": {
      "project": "all"
    }
  }
}

This configuration achieves the following:

  • Because the project domain is enabled, all supported files in the project are indexed and processed by the linter, except:
  • Files inside a generated folder are not processed by the linter, but they will get indexed if a file outside a generated folder imports them.
  • Files inside a dist folder are never indexed nor processed, not even if they are imported for any purpose, except:
  • When the dist folder is inside fixtures/example/, its .js files do get both indexed and processed.

In general, we now recommend using the force-ignore syntax for any folders that contain output files, such as build/ and dist/. For such folders, it is highly unlikely that indexing has any useful benefits. For folders containing generated files, you may wish to use the regular ignore syntax so that type information can still be extracted from the files.

experimentalScannerIgnores will continue to work for now, but you'll see a deprecation warning if you still use it.

Run the biome migrate --write command to automatically update the configuration file.

  • #​7698 3b6f5e3 Thanks @​ematipico! - Added a new reporter named rdjson. This reporter prints diagnostics following the RDJSON format:

    The following command:

    biome check --reporter=rdjson

    Will emit diagnostics in the following format:

    {
      "source": {
        "name": "Biome",
        "url": "https://biomejs.dev"
      },
      "diagnostics": [
        {
          "code": {
            "url": "https://biomejs.dev/linter/rules/no-unused-imports",
            "value": "lint/correctness/noUnusedImports"
          },
          "location": {
            "path": "index.ts",
            "range": {
              "end": {
                "column": 11,
                "line": 0
              },
              "start": {
                "column": 7,
                "line": 0
              }
            }
          },
          "message": "This import is unused."
        },
        {
          "code": {
            "url": "https://biomejs.dev/linter/rules/no-unused-imports",
            "value": "lint/correctness/noUnusedImports"
          },
          "location": {
            "path": "index.ts",
            "range": {
              "end": {
                "column": 10,
                "line": 1
              },
              "start": {
                "column": 9,
                "line": 1
              }
            }
          },
          "message": "Several of these imports are unused."
        }
      ]
    }
  • #​7719 188a767 Thanks @​cadunass! - The formatWithErrors option can now be set via CLI using the --format-with-errors flag.

    This flag was previously only available in the configuration file. It allows formatting to proceed on files with syntax errors, which is useful during development when you want to auto-format code while fixing syntax issues.

Example
biome format --format-with-errors=true --write file.js
  • #​7723 d3aac63 Thanks @​ematipico! - Added --json-parse-allow-comments CLI flag to control whether comments are allowed in JSON files.

    You can now enable or disable comment parsing in JSON files directly from the command line:

    biome check --json-parse-allow-comments=true file.json
    biome format --json-parse-allow-comments=true file.json
    biome lint --json-parse-allow-comments=true file.json
    biome ci --json-parse-allow-comments=true file.json
  • #​7723 d3aac63 Thanks @​ematipico! - Added --json-parse-allow-trailing-commas CLI flag to control whether trailing commas are allowed in JSON files.

    You can now enable or disable trailing comma parsing in JSON files directly from the command line:

    biome check --json-parse-allow-trailing-commas=true file.json
    biome format --json-parse-allow-trailing-commas=true file.json
    biome lint --json-parse-allow-trailing-commas=true file.json
    biome ci --json-parse-allow-trailing-commas=true file.json
  • #​7758 cea002f Thanks @​ematipico! - Promoted new lint rules:

    • Promoted noNonNullAssertedOptionalChain to the suspicious group
    • Promoted useReactFunctionComponents to the style group
    • Promoted useImageSize to the correctness group
    • Promoted useConsistentTypeDefinitions to the style group
    • Promoted useQwikClasslist to the correctness group
    • Promoted noSecrets to the security group

    Removed the lint rule useAnchorHref, because its use case is covered by useValidAnchor.

  • #​6356 296627d Thanks @​wrick17! - Added the new checkstyle reporter. When `--reporter


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from codeismyid as a code owner June 17, 2025 16:59
@renovate renovate bot added bot Bot involvement dependency Additions or changes involving dependency renovate Anything from renovatebot labels Jun 17, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from ff4ef5a to 35b7835 Compare June 20, 2025 16:30
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.0 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.2 Jun 20, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 35b7835 to d9880e8 Compare June 21, 2025 08:27
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.2 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.3 Jun 21, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from d9880e8 to f520442 Compare June 21, 2025 13:26
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.3 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.4 Jun 21, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from f520442 to b428e5e Compare June 23, 2025 19:32
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.4 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.5 Jun 23, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from b428e5e to 10d8143 Compare June 27, 2025 10:31
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.5 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.6 Jun 27, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 10d8143 to 854b562 Compare July 8, 2025 13:11
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.0.6 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.0 Jul 8, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 854b562 to a166dc8 Compare July 8, 2025 19:29
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.0 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.1 Jul 8, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from a166dc8 to d1c71ba Compare July 17, 2025 16:06
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.1 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.2 Jul 17, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from d1c71ba to 1ca3535 Compare July 29, 2025 15:47
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.2 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.3 Jul 29, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 1ca3535 to 43b725e Compare August 7, 2025 17:09
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.3 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.4 Aug 7, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 43b725e to 015d2f3 Compare August 14, 2025 13:54
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.1.4 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.0 Aug 14, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 015d2f3 to 91e02d0 Compare August 23, 2025 12:53
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.0 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.2 Aug 23, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 91e02d0 to cceb91e Compare September 6, 2025 19:13
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.2 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.3 Sep 6, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from cceb91e to fdb42c6 Compare September 10, 2025 14:24
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.3 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.4 Sep 10, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from fdb42c6 to caaf2fc Compare October 2, 2025 10:31
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.4 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.5 Oct 2, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from caaf2fc to 384c3d5 Compare October 13, 2025 13:03
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.5 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.6 Oct 13, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 384c3d5 to db937f8 Compare October 22, 2025 11:45
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.6 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.7 Oct 22, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from db937f8 to 79deae8 Compare October 24, 2025 14:53
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.2.7 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.0 Oct 24, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 79deae8 to b463d33 Compare October 26, 2025 20:53
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.0 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.1 Oct 26, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from b463d33 to a540840 Compare October 28, 2025 22:43
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.1 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.2 Oct 28, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from a540840 to 8313b7a Compare November 3, 2025 12:08
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.2 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.3 Nov 3, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 8313b7a to 4a7cab0 Compare November 5, 2025 19:13
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.3 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.4 Nov 5, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch 2 times, most recently from cc5155d to 0d60752 Compare November 11, 2025 15:48
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.4 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.5 Nov 11, 2025
@renovate renovate bot force-pushed the renovate/npm/biomejs-biome-2.x branch from 0d60752 to a238d80 Compare November 17, 2025 09:50
@renovate renovate bot changed the title build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.5 build: update dev-dependency @biomejs/biome from 1.9.4 to 2.3.6 Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Bot involvement dependency Additions or changes involving dependency renovate Anything from renovatebot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants